﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace FilmManagement2.Object
{
    public class MovieStudio
    {
        public int studioId;
        public int filmId;
        public DateTime startTime;
        public DateTime endTime;
        public bool AA=true;
        public bool AB=true;
        public bool AC=true;
        public bool BA=true;
        public bool BB=true;
        public bool BC=true;
        public bool CA=true;
        public bool CB=true;
        public bool CC=true;
        public int seatNumber=0;
        public int getRestSeatNumber()
        {
            
            if (AA)
            {
                seatNumber++;
            }
            if (AB)
            {
                seatNumber++;
            }
            if (AC)
            {
                seatNumber++;
            }
            if (BA)
            {
                seatNumber++;
            }
            if (BB)
            {
                seatNumber++;
            }
            if (BC)
            {
                seatNumber++;
            }
            if (CA)
            {
                seatNumber++;
            }
            if (CB)
            {
                seatNumber++;
            }
            if (CC)
            {
                seatNumber++;
            }
            return seatNumber;
        }

    }
}